import { useEffect,useState} from "react";
// useRoutes 根据路由配置 创建路由
import {useRoutes} from 'react-router-dom'
import baseRoutes from "./baseRoutes";
function RouterView() {
  // 创建路由
  const element = useRoutes(baseRoutes)
  // 返回路由内容
  return ( <>{element}</> );
}

export default RouterView;